﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;

namespace deal_h2ck
{
    public class SqlDataProvider
    {
        public static DataTable LoadSQL(string sql)
        {
            string cnStr = ConfigurationManager.ConnectionStrings["strDeal_h2kc"].ConnectionString;
            SqlConnection cn = new SqlConnection(cnStr);
            SqlDataAdapter da = new SqlDataAdapter(sql, cn);
            DataTable dt = new DataTable();
            da.Fill(dt);
            return dt;
        }
    }
}